package com.easepal802s.project.evenbus;


import org.greenrobot.eventbus.EventBus;

/**
 * 事件分发库
 * @author android
 *
 */
public final class EventS {
	/**
	 * 发布
	 * @param event
	 */
	public static void post(Object event) {
		EventBus.getDefault().post(event);
	}
	/**
	 * 订阅
	 * @param subscriber
	 */
	public static void register(Object subscriber) {
		EventBus.getDefault().register(subscriber);
	}

	/**
	 * 取消
	 * @param subscriber
	 */
	public static void unregister(Object subscriber) {
		EventBus.getDefault().unregister(subscriber);

}
	
}
